<%--
  Created by IntelliJ IDEA.
  User: JaGo
  Date: 2021-07-26
  Time: 9:34
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>首页</title>
</head>
<body>

<%
    Object userSession = request.getSession().getAttribute("USER_SESSION");
    if (userSession == null) {
        response.sendRedirect("/login.jsp");
    }
%>

<h1>登录成功</h1>
<a href="/servlet/logout">注销</a>
</body>
</html>
